#include <stdio.h>
#include <stdlib.h>
#include<string.h>


int main()
{
    FILE *fp=fopen("myfile","w");
    if(!fp)
    {
        printf("fopen error\n");
    }
    const char *msg="hello bit!\n";
    int count =5;
    while(count--)
    {
        fwrite(msg,sizeof(char),strlen(msg),fp);
    }
    fclose(fp);
    return 0;
}